import request from '@/utils/request'

export function historyList(query) {
    return request({
        url: '/userDatalist',
        method: 'get',
        params: query
    })
}

// 查询文献知识
export function listK1(query) {
    return request({
        url: '/literatureknowledgeview',
        method: 'get',
        params: query
    })
}

// 新增文献知识
export function addK1(data) {
    return request({
        url: '/literatureknowledgeview',
        method: 'post',
        data: data
    })
}

// 修改文献知识
export function editK1(id,data) {
    return request({
        url: '/literatureknowledge/'+id,
        method: 'put',
        data: data
    })
}

// 删除文献知识
export function deleteK1(id) {
    return request({
        url: '/literatureknowledge/'+id,
        method: 'delete'
    })
}


// 查询磁刺激知识
export function listK2(query) {
    return request({
        url: '/magneticstimulusprescriptionsview',
        method: 'get',
        params: query
    })
}

// 新增磁刺激知识
export function addK2(data) {
    return request({
        url: '/magneticstimulusprescriptionsview',
        method: 'post',
        data: data
    })
}

// 修改磁刺激知识
export function editK2(id,data) {
    return request({
        url: '/magneticstimulusprescriptions/'+id,
        method: 'put',
        data: data
    })
}

// 删除磁刺激知识
export function deleteK2(id) {
    return request({
        url: '/magneticstimulusprescriptions/' + id,
        method: 'delete'
    })
}

// 查询电刺激知识
export function listK3(query) {
    return request({
        url: '/electricalstimulusprescriptionsview',
        method: 'get',
        params: query
    })
}
// 新增电刺激知识
export function addK3(data) {
    return request({
        url: '/electricalstimulusprescriptionsview',
        method: 'post',
        data: data
    })
}

// 修改电刺激知识
export function editK3(id,data) {
    return request({
        url: '/electricalstimulusprescriptions/' + id,
        method: 'put',
        data: data
    })
}

// 删除电刺激知识
export function deleteK3(id) {
    return request({
        url: '/electricalstimulusprescriptions/'+id,
        method: 'delete'
    })
}
